﻿package events
{
	import flash.events.Event;
	import flash.geom.Point;
	
	public class UserEvent extends Event
	{
		public static const SPACE : String = "SPACE" ;
		public static const LEFT : String = "LEFT" ;
		public static const UP : String = "UP" ;
		public static const RIGHT : String = "RIGHT" ;
		public static const DOWN : String = "DOWN" ;
		public static const RELEASE_SPACE : String = "RELEASE_SPACE" ;
		public static const RELEASE_LEFT : String = "RELEASE_LEFT" ;
		public static const RELEASE_UP : String = "RELEASE_UP" ;
		public static const RELEASE_RIGHT : String = "RELEASE_RIGHT" ;
		public static const RELEASE_DOWN : String = "RELEASE_DOWN" ;
		
		public function UserEvent(type : String ) 
		{
			super( type, true ) ;
		}
		override public function clone() : Event
		{
			return new UserEvent( type ) ;
		}		
		override public function toString() : String
		{
			return "[UserEvent : " + type + "]" ;
		}		
	}
}